package club.mzywucai.blog.file_system.service;

import club.mzywucai.blog.file_system.pojo.domain.JsonData;

import javax.servlet.http.HttpSession;

/**
 * @author mzywucai
 * @Description 点赞数统计和下载数统计
 * @date 2019/2/12
 */
public interface DownloadAndStarCountService {

    /**
     * @Description 点赞的查询
     * @author mzywucai
     * @time 2019-02-12
     * @see 
     * @return   club.mzywucai.blog.file_system.pojo.domain.JsonData
     * @params  [fileInfoId, session]
     */
    JsonData countStar(long fileInfoId, HttpSession session);

    /**
     * @Description 下载的查询
     * @author mzywucai
     * @time 2019-02-12
     * @see 
     * @return   club.mzywucai.blog.file_system.pojo.domain.JsonData
     * @params  [fileInfoId, session]
     */
    JsonData countDownload(long fileInfoId, HttpSession session);

}
